<?php
require_once (WEBURL.'/login_status_check.php');
if(!checkLogin()){
	require_once ('admin_login.php');
}
/*字符串时间转换为时间戳，格式为yyyy-MM-dd HH:mm:ss*/
function timeToStimestamp($strtime){
	$array = explode("-",$strtime);
	$year = $array[0];
	$month = $array[1];
	
	$array = explode(":",$array[2]);
	$minute = $array[1];
	$second = $array[2];
	
	$array = explode(" ",$array[0]);
	$day = $array[0];
	$hour = $array[1];
	
	$timestamp = mktime($hour,$minute,$second,$month,$day,$year);
	
	return $timestamp;
	
}